
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*"%>
    <%request.setCharacterEncoding("utf-8");%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>学籍管理系统</title>
    <style>
        #div_top
        {
            background-image: url("n_banner.jpg");
            height: 200px;
            width: 100px;
        }
        #div_left
        {
            float: left;
            width: 15%;
            background-color: #00ffff;
            text-align: center;
        }
        #div_right
        {
            float: left;
            width: 85%;
        }
        </style>
</head>
<body>
<div id="div_top">
        <%--
            需要建一个top.html文件，
            或者是自定义一个文件替换掉top.html
            html和jsp文件都可以
            <%@ include file="top.html" %> —— 这个的作用是将整个top.html的内容放入到这里面，相当于把这个文件引用到这里，显示该页面
            下面所有<%@ include file="" %>这个都是这样的
        --%>
        <%@ include file="top.html" %>
    </div>
    <div id="div_left">
        <%@ include file="left.html" %>
    </div>
    <div id="div_right">
        <%--
            下面嵌套java代码
            String s = request.getParameter("choice"); 点击获取choice赋值给s
            点击哪个，就传入对应的值
        --%>
        <%
        String s = request.getParameter("choice");
        if(s==null) //这里判断s
        {
            s = "1";//设默认值为 "1"
        }
        int choice = Integer.parseInt(s);// 将字符串转为int类型 下面表示符合对应值就显示相应的页面
        if(choice==1)
        {%>
        <%@ include file="studb.jsp" %>
        <%}
        if(choice==2)
        {%>
        <%@include file="tiaojian.jsp" %>
        <%}
        if(choice==3)
        {%>
        <%@include file="insert.jsp" %>
        <%}
        if(choice==4)
        {%>
        <%@include file="del.jsp" %>
        <%}
        if(choice==5)
        {%>
        <%@include file="update.jsp" %>
        <%}
    %>
    </div>
</body>
</html>